package com.zl.customer.pojo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 客户条件类  包装类
 * @ClassName: CustomerCondition
 * @author: suke
 * @since: 2021/7/20 10:42
 */
@Data
public class CustomerCondition {
        private Customer customer;
        private int pageIndex = 1; //页码
        private int pageSize= 3; //页容量
        private int endno;
        private int startno;
        private List<Integer> ids =  new ArrayList<>();

        public int getEndno() {
                return pageIndex * pageSize;
        }

        public int getStartno() {
                return (pageIndex -1)*pageSize+1;
        }
}
